home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 203
/
203.d81
/
src.zip rtl
< prev
next >
Wrap
Text File
|
2022-08-26
|
1KB
|
118 lines
*=3673 ;ZIP 128 RTL
.nolist
jmp PRINT
jmp PrintChr
jmp PrintStr
jmp PrintRet
jmp GET
jmp SYS
jmp CHAR
jmp Error
jmp GetPar8
jmp GetPar16
PRINT: ;Print # or var.
stx 59
sta 60
lda #0 ;bank 15
sta $ff00 ;ROMs on
jsr 36398 ;Print 16-bit #.
sta $ff01 ;bank 0
rts
PrintChr: ;Print CHR$( )
ldx #0 ;bank 15
stx $ff00 ;ROMs on
jsr $ffd2 ;CHROUT
sta $ff01 ;bank 0
rts
PrintStr: ;Print text string.
ldy #0
inx
dex
bne *+6
sta $ff01
rts
sta $ff01 ;switch to bank 0
lda ($22),y ;in case past 9k.
pha
lda #0 ;bank 15
sta $ff00 ;switch in ROMs.
pla
jsr $ffd2 ;CHROUT
iny
jmp PrintStr+3
PrintRet: ;Print return
lda #13
jmp PrintChr
GET:
lda #0
sta $ff00
jsr 65508 ;JGETIN
sta $ff01
rts
SYS:
lda #0
sta $ff00
jsr 717
sta $ff01
cli
rts
CHAR:
pha
tya
tax
pla
tay
lda #0
sta $ff00
jsr 49176
sta $ff01
rts
Error:
lda #0
sta $ff00
jmp ($0300)
GetPar8:
lda #0
sta $ff00 ;bank 15
bcs *+8
jsr 34801
jmp *+6
jsr 34804
rts
GetPar16:
lda #0
sta $ff00
bcs *+5
jsr 31068
jsr 30679
jsr 34837
rts
Write:
ldy #6
lda Trans,y
sta 996,y
dey
bpl Write+2
rts
Trans:
jsr 717
sta $ff01
rts
.end